package com.chat.dao;

import org.springframework.stereotype.Repository;

import com.chat.entity.TdChatPeopleRelation;
import com.chat.entity.TdChatPeopleRelationWithBLOBs;

/**
 * td_chat_people_relation表操作Dao层
 * @author zh_zhong
 */
@Repository("peopleRelationDao")
public interface ChatPeopleRelationDao {
    int deleteByPrimaryKey(Integer relationid);

    int insert(TdChatPeopleRelationWithBLOBs record);

    int insertSelective(TdChatPeopleRelationWithBLOBs record);

    TdChatPeopleRelationWithBLOBs selectByPrimaryKey(Integer relationid);

    int updateByPrimaryKeySelective(TdChatPeopleRelationWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(TdChatPeopleRelationWithBLOBs record);

    int updateByPrimaryKey(TdChatPeopleRelation record);
    
    /////////////////////////手动增加的方法/////////////////////////////////
    public String getAllFriendByUserName(String userName);//得到全部好友userName的字符串
    TdChatPeopleRelationWithBLOBs selectByUserName(String userName);
    
}